package com.iot.mapper;

import com.iot.pojo.MTusers;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DTusersMapper {
    public MTusers login(@Param("username") String username, @Param("password") String password);
    public List<Map<String,Object>> fetchByPage(Map<String, Object> map);

    public Map<String,Object> getUserById(@Param("userId") Integer userId);
    public MTusers getUserByName(@Param("username") String username);
}
